package com.kanqiubao.kq.activity.video;

import android.os.Bundle;

import com.kanqiubao.kq.R;
import com.kanqiubao.kq.activity.BaseActivity;
import com.kanqiubao.kq.fragment.video.VideoListFragment;

import androidx.fragment.app.FragmentTransaction;

/**
 * 视频列表
 */
public class VideoListActivity extends BaseActivity<String> {
    @Override
    protected void onActivityCreate(Bundle savedInstanceState) {
        initFragment();
    }

    @Override
    protected int getActivitylayout() {
        return R.layout.frag_main_layout;
    }

    @Override
    protected String getTitleText() {
        return "名称名称";
    }

    private void initFragment() {
        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        VideoListFragment fg = new VideoListFragment();
        ft.add(R.id.fg_id, fg);
        ft.commit();
    }
}
